import React from 'react';
import { connect } from 'dva';
import styles from './IndexPage.css';


class Home extends React.Component {
  static fetching({ dispatch, path }) {
    let language = path.substr("/popular/".length);
    return [
      dispatch({ type: 'grid/init', payload: { language } }),
    ];
  }
  render() {
    return (
      <div>
        Home
        <br />
        <a href="/">home</a>
      </div>
    )
  }
}

export default connect()(Home);
